//
//  LSZDonationDetailsVC.m
//  JKFuYinProject
//
//  Created by 九酷 on 2017/10/14.
//  Copyright © 2017年 LC. All rights reserved.
//

#import "LSZDonationDetailsVC.h"

@interface LSZDonationDetailsVC ()

@end

@implementation LSZDonationDetailsVC

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"捐献";
    CGRect labTitleRect = [self.titleStr boundingRectWithSize:CGSizeMake(self.view.width-20, 1000) options:(NSStringDrawingUsesLineFragmentOrigin|NSStringDrawingUsesFontLeading) attributes:[NSDictionary dictionaryWithObject:FONT_16 forKey:NSFontAttributeName] context:nil];
    UILabel * labelTitle = [[UILabel alloc]initWithFrame:CGRectMake(10,NAVIGATION_BAR_HEIGHT+10, ScreenWidth-20, labTitleRect.size.height)];
    labelTitle.font = FONT_16;
    labelTitle.numberOfLines = 0;
    labelTitle.text  = [NSString stringWithFormat:@"%@",self.titleStr];
    labelTitle.textColor = [UIColor redColor];
    [self.view addSubview:labelTitle];
    
    UILabel * labelName = [[UILabel alloc]initWithFrame:CGRectMake(10, CGRectGetMaxY(labelTitle.frame)+20, ScreenWidth-20, 14)];
    labelName.font = FONT_16;
    labelName.text = [NSString stringWithFormat:@"%@留言:",self.strName];
    labelName.textColor = [UIColor blueColor];
    [self.view addSubview:labelName];
    //留言messageStr
    CGRect labMessage = [self.messageStr boundingRectWithSize:CGSizeMake(self.view.width-20, 10000) options:(NSStringDrawingUsesLineFragmentOrigin|NSStringDrawingUsesFontLeading) attributes:[NSDictionary dictionaryWithObject:FONT_16 forKey:NSFontAttributeName] context:nil];
    UILabel * labelmessage = [[UILabel alloc]initWithFrame:CGRectMake(10, CGRectGetMaxY(labelName.frame)+20, ScreenWidth-20, labMessage.size.height)];
    labelmessage.font = FONT_16;
    labelmessage.text = [NSString stringWithFormat:@"%@",self.messageStr];
    labelmessage.numberOfLines = 0;
    [self.view addSubview:labelmessage];
}

@end
